package com.tmy.controller;

import com.tmy.Dto.Result;
import com.tmy.entity.RoomStatus;
import com.tmy.service.RoomStatusService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 房型状态管理
 */
@RestController
@RequestMapping("/roomStatus")
public class RoomStatusController {
    @Resource
    private RoomStatusService roomStatusService;

    /**
     * 删除房型记录(退房)
     */
    @PostMapping("/deleteRoomStatu")
    public Result deleteRoomStatu(@RequestBody RoomStatus roomStatus){
        return roomStatusService.deleteRoomStatu(roomStatus);
    }
    /**
     * 查询房型记录
     */
    @PostMapping("/queryRoomStatus")
    public Result queryRoomStatus(@RequestBody RoomStatus roomStatus){
        return roomStatusService.queryRoomStatus(roomStatus);
    }
}
